package com.hsylient.javase.chapter10;

import org.junit.Test;

public class MyStringBuilder {

    @Test
    public void testConstructor() {
        StringBuilder stringBuilder = new StringBuilder();
        System.out.println(stringBuilder.append("hsylient").length());
        System.out.println(stringBuilder.appendCodePoint(97));
        stringBuilder.setCharAt(0, 'a');
        System.out.println(stringBuilder);
        System.out.println(stringBuilder.insert(3, "xx"));
    }
}
